<html>
<head><meta charset="utf-8"><title>What are the rust env vars #82403 · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20are.20the.20rust.20env.20vars.20.2382403.html">What are the rust env vars #82403</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="227316095"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20are%20the%20rust%20env%20vars%20%2382403/near/227316095" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20are.20the.20rust.20env.20vars.20.2382403.html#227316095">(Feb 22 2021 at 18:42)</a>:</h4>
<p>Hey <span class="user-mention" data-user-id="232545">@Joshua Nelson</span> , what’s your opinion about what to do about those <code>CFG</code> variables you noted? Should we rename them (e.g. to <code>RUSTC_CFG</code> or <code>RUST_CFG</code>), or should I just print out all the <code>CFG</code> variables along with the <code>RUST</code> and <code>CARGO</code> prefixed ones?</p>



<a name="227316220"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20are%20the%20rust%20env%20vars%20%2382403/near/227316220" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20are.20the.20rust.20env.20vars.20.2382403.html#227316220">(Feb 22 2021 at 18:43)</a>:</h4>
<p>Changing them to RUSTC_CFG seems reasonable if you're up for changing them :) we should give a heads up to <span class="user-mention" data-user-id="320317">@Caleb Cartwright</span> and any other tools setting them during the build though</p>



<a name="227316285"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20are%20the%20rust%20env%20vars%20%2382403/near/227316285" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20are.20the.20rust.20env.20vars.20.2382403.html#227316285">(Feb 22 2021 at 18:43)</a>:</h4>
<p>I don't recall quite what they're used for, but I imagine it may break things if they're not set in subtle ways (e.g., version number disappearing)</p>



<a name="227316346"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20are%20the%20rust%20env%20vars%20%2382403/near/227316346" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20are.20the.20rust.20env.20vars.20.2382403.html#227316346">(Feb 22 2021 at 18:44)</a>:</h4>
<blockquote>
<p>Okay. It seemed to work for me, and I didn't include any of the CFG nor CARGO variables in my invocation.</p>
</blockquote>
<p>ooh that's really good news :) that means we can merge <a href="https://github.com/rust-lang/rust/issues/82403">#82403</a> without having to mess with the variables</p>



<a name="227316424"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20are%20the%20rust%20env%20vars%20%2382403/near/227316424" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20are.20the.20rust.20env.20vars.20.2382403.html#227316424">(Feb 22 2021 at 18:44)</a>:</h4>
<p>yeah I think I’d like to take that step first, and do this other thing as a follow-up item.</p>



<a name="227316668"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/What%20are%20the%20rust%20env%20vars%20%2382403/near/227316668" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/What.20are.20the.20rust.20env.20vars.20.2382403.html#227316668">(Feb 22 2021 at 18:46)</a>:</h4>
<p>sgtm</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>